import { useUserStore } from '@/store/modules/user.js'

export function hasPermission(keyValue) {
  const permissions = useUserStore().getPermissionList
  return permissions?.includes(keyValue)
}
